 package uk.co.mmscomputing.device.twain;
 
 public class TwainOneValue extends TwainContainer
 {
   Object item;
 
   TwainOneValue(int paramInt, byte[] paramArrayOfByte)
   {
     super(paramInt, paramArrayOfByte);
     this.item = get32BitObjectAt(paramArrayOfByte, 2);
   }
   int getType() {
     return 5;
   }
   byte[] getBytes() {
     byte[] arrayOfByte = new byte[6];
     jtwain.setINT16(arrayOfByte, 0, this.type);
     set32BitObjectAt(arrayOfByte, 2, this.item);
     return arrayOfByte;
   }
   public Object getCurrentValue() throws TwainIOException {
     return this.item; } 
   public void setCurrentValue(Object paramObject) throws TwainIOException { this.item = paramObject; } 
   public Object getDefaultValue() throws TwainIOException {
     return this.item; } 
   public void setDefaultValue(Object paramObject) throws TwainIOException { this.item = paramObject; }
 
   public Object[] getItems() {
     Object[] arrayOfObject = new Object[1];
     arrayOfObject[0] = this.item;
     return arrayOfObject;
   }
 
   public String toString() {
     String str = super.toString();
     str = str + "item         = " + this.item + "\n";
     return str;
   }
 }

